package eureka.consumer.redissonlock.review.modle;

import eureka.consumer.redissonlock.DistributedLockFactoryBean;

/**
 * @Author RenPu
 * @Date 2023/10/7 16:30
 * @Version 1.0
 * @Description:
 **/
public enum LockMode {
    SINGLE;
    public static LockMode parse(String key){
        for (LockMode lockMode : LockMode.values()) {
            if(lockMode.equals(key.toUpperCase())){
                return lockMode;
            }

        }
        return null;
    }


}
